<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('users', function (Blueprint $table) {
            $table->increments('id') ->comment('ID');
            $table->string('user_name') -> comment('用户名');
            $table->string('sex') -> comment('性别');
            $table->string('password') -> comment('密码');
            $table->string('email') -> comment('邮箱');
            $table->string('auth') -> comment('权限');
            $table->string('pic') -> default('fefault.jpg') -> comment('头像');
            $table->tinyInteger('status')-> default(0) -> comment('状态');
            $table->rememberToken() -> comment('令牌');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('users');
    }
}
